package com.jinsi.mapper;

import com.jinsi.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;
import java.util.Date;
import java.util.List;

@Mapper
public interface ScStuMapper {
    //获取全部学生信息
    public List<ScStudent> getStus();
    //根据用户输入信息进行筛选查询
    public List<ScStudent> getStusByLike(@Param("studentId") Integer studentId,
                                         @Param("studentName") String studentName,
                                         @Param("studentIdNumber") String studentIdNumber,
                                         @Param("studentCreateDate") String studentCreateDate
                                         );
    //根据用户输入信息进行筛选查询
    public List<ScStudentOperationLog> getStusByLikeIdAndName(@Param("studentId") Integer studentId,
                                                              @Param("studentName") String studentName,
                                                              @Param("status") Integer status
    );
    //获取该学生全部已有订单
    //获取一级节点
   public List<ScClassDocument> getClassDocument(String studentId,Integer pid);
    //根据收费标准制作节点数据
    List<ScStudentStandard> getStudentStandard(String studentId);
    //获取子节点
    List<ScStudentStandard> getStudentStandardSub(String projectId);
    //删除学生信息
    public int delStu(String studentId);
    //修改学生状态
    public int upStuByStatus(ScStudent student);
    //添加学生信息
    public void save(List<ScStudent> cachedDataList);
}
